/*
 *  $Id: Entangle.cs 1051 2010-05-18 22:10:41Z thenn.erannor $
 *	This file is a part of Ragima CCG.
 *	(C) 2008 Ragima development group.
 *
 *	Licensed under the terms of the GNU GPL License version 2.
 *
 */

namespace Ragima.Cards001.Earth.Abilities {
    public class Entangle: TargetEnchantmentCard<Creature> {
        public Entangle(): base("001_e_s_entangle") {
            Level = CompleteLevel.ReadyForTest;
            Element = ElementType.Earth;
            Target = new CreatureTarget(GetTargetPhrase(), true, true, CreatureTarget.IsDisabled);
            AddManaCost(ElementType.Earth, 3);
        }

        protected override EnchantmentAffect CreateEnchantment() {
            return new EntangleAffect();
        }

        private class EntangleAffect: EnchantmentAffect<Entangle> {
            public EntangleAffect() {
                Add(new Affects.Idler());
            }
        }
    }
}
